package com.ytc.mapper;

import com.ytc.model.Vip;
import org.apache.ibatis.annotations.Param;

/**
* @author 25645
* @description 针对表【my_vip(用户会员表)】的数据库操作Mapper
* @createDate 2023-01-14 12:57:14
* @Entity com.ytc.model.Vip
*/
public interface VipMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Vip record);

    int insertSelective(Vip record);

    Vip selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Vip record);

    int updateByPrimaryKey(Vip record);

    //张阔：查询Vip信息
    Vip queryVip(@Param("uId") Integer uId);

    //张阔：修改会员日期
    void updateDueTimeByMoney(@Param("money") double money, @Param("uid") Integer uid);

    //张阔：新增会员
    void addVipByMoney(@Param("money") double money, @Param("uid") Integer uid);


}
